package hanshunping.project.tankWar;

import jdk.internal.org.objectweb.asm.tree.MultiANewArrayInsnNode;

import javax.swing.*;
import java.awt.*;

public class TankFrame extends JFrame {
    public static void main(String[] args) {
        new TankFrame();
    }
    public TankFrame() {
        TankPanel panel = new TankPanel();
        this.add(panel);
        new Thread(panel).start();
        this.addKeyListener(panel);
        this.setSize(1000,1000);
        this.setVisible(true);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
}
